import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SDrugCanUseDtMsg
    
    export  class SDrugCanUseDtMsg extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDrugCanUseDtMsg();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeDate(this.canUseContinueLifeDrugDt);
            arg1.writeDate(this.canUseContinueManaDrugDt);
            arg1.writeDate(this.canUseMoreExpDrugDt);
            arg1.writeDate(this.canUseExpDrugDt);
            arg1.writeDate(this.canUseImmediatelyLifeDrugDt);
            arg1.writeDate(this.canUseImmediatelyManaDrugDt);
            arg1.writeDate(this.canUseLifeBagDrugDt);
            arg1.writeDate(this.canUseManaBagDrugDt);
            arg1.writeDate(this.canUseBufferDrugDt);
            arg1.writeDate(this.canUsePetContinueLifeDrugDt);
            arg1.writeDate(this.canUsePetContinueManaDrugDt);
            arg1.writeDate(this.canUsePetEnergyDrugDt);
            arg1.writeDate(this.canUsePetLifeSpanDrugDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.canUseContinueLifeDrugDt = arg1.readDate();
            this.canUseContinueManaDrugDt = arg1.readDate();
            this.canUseMoreExpDrugDt = arg1.readDate();
            this.canUseExpDrugDt = arg1.readDate();
            this.canUseImmediatelyLifeDrugDt = arg1.readDate();
            this.canUseImmediatelyManaDrugDt = arg1.readDate();
            this.canUseLifeBagDrugDt = arg1.readDate();
            this.canUseManaBagDrugDt = arg1.readDate();
            this.canUseBufferDrugDt = arg1.readDate();
            this.canUsePetContinueLifeDrugDt = arg1.readDate();
            this.canUsePetContinueManaDrugDt = arg1.readDate();
            this.canUsePetEnergyDrugDt = arg1.readDate();
            this.canUsePetLifeSpanDrugDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=12038;

        public /* var */canUseContinueLifeDrugDt: Date;

        public /* var */canUseContinueManaDrugDt: Date;

        public /* var */canUseMoreExpDrugDt: Date;

        public /* var */canUseExpDrugDt: Date;

        public /* var */canUseImmediatelyLifeDrugDt: Date;

        public /* var */canUseImmediatelyManaDrugDt: Date;

        public /* var */canUseLifeBagDrugDt: Date;

        public /* var */canUseManaBagDrugDt: Date;

        public /* var */canUseBufferDrugDt: Date;

        public /* var */canUsePetContinueLifeDrugDt: Date;

        public /* var */canUsePetContinueManaDrugDt: Date;

        public /* var */canUsePetEnergyDrugDt: Date;

        public /* var */canUsePetLifeSpanDrugDt: Date;

        public static /* var */_regist: SDrugCanUseDtMsg;
    }

            SDrugCanUseDtMsg._regist = new SDrugCanUseDtMsg(true);
        